<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="author" content="Laurence-042">
    
    
    
    
    
    
    <title>Python笔记-特殊变量 | Laurence</title>
    <link href=”https://laurence-042.github.io“ rel=”prefetch” />

    <link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/aos.css">
<link rel="stylesheet" href="/css/style.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/aos.js"></script>
    <script src="/js/highslide/highslide-full.min.js"></script>
    <link rel="stylesheet" href="/js/highslide/highslide.css">
    <style type="text/css">
        @media (max-width: 768px) {
            body {
                background-color: #f0f0f0;
                background: url('/imgs/xsbg.jpg');
                background-attachment: fixed;
            }
        }
    </style>
    
    <!--<script type="text/javascript">
      if (document.images) {
        var avatar = new Image();
        avatar.src = '/imgs/dr.png'
        var previews = 'http://bing.ioliu.cn/v1/rand'.split(',')
        var previewsPreLoad = []
        for(var i = 0; i < length; i++) {
          previewsPreLoad.push(new Image())
          previewsPreLoad[previewsPreLoad.length - 1].src = '/imgs/preview' + previews[i]
        }
      }
    </script>-->

    <!--highlight.js-->
    <link rel="stylesheet" href="//cdn.bootcss.com/highlight.js/9.2.0/styles/github.min.css">
    <script src="//cdn.bootcss.com/highlight.js/9.2.0/highlight.min.js"></script>
</head>
<body>
    <!-- 背景轮播图功能 -->
    <section class="hidden-xs">
    <ul class="cb-slideshow">
        <li><span>天若</span></li>
        <li><span>有情</span></li>
        <li><span>天亦老</span></li>
        <li><span>我为</span></li>
        <li><span>长者</span></li>
        <li><span>续一秒</span></li>
    </ul>
</section>
    <!-- 欧尼酱功能, 谁用谁知道 -->
    
    <header class="navbar navbar-inverse" id="gal-header">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target=".bs-navbar-collapse"
                    aria-expanded="false">
                <span class="fa fa-lg fa-reorder"></span>
            </button>
            <a href="https://laurence-042.github.io">
                
                <style>
                    #gal-header .navbar-brand {
                        height: 54px;
                        line-height: 24px;
                        font-size: 28px;
                        opacity: 1;
                        background-color: rgba(0,0,0,0);
                        text-shadow: 0 0 5px #fff,0 0 10px #fff,0 0 15px #fff,0 0 20px #228DFF,0 0 35px #228DFF,0 0 40px #228DFF,0 0 50px #228DFF,0 0 75px #228DFF;
                    }
                </style>
                <!-- 这里使用文字(navbar_text or config.title) -->
                <div class="navbar-brand">Laurence</div>
                
            </a>
        </div>
        <div class="collapse navbar-collapse bs-navbar-collapse">
            <ul class="nav navbar-nav" id="menu-gal">
                
                
                <li class="">
                    <a href="/">
                        <i class="fa fa-home"></i>首页
                    </a>
                </li>
                
                
                
                <li class="">
                    <a href="/archives">
                        <i class="fa fa-archive"></i>归档
                    </a>
                </li>
                
                
                
                
                <li class="">
                    <a href="/categories">
                        <i class="fa fa-list"></i>分类
                    </a>
                </li>
                
                
                
                
                
                <li class="dropdown">
                    <!-- TODO 添加hover dropdown效果 -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false" data-hover="dropdown">
                        <i class="fa fa-tags"></i>标签
                    </a>
                    <ul class="dropdown-menu">
                        
                        
                        <li>
                            <a href="/tags/Java/">Java</a>
                        </li>
                        
                        <li>
                            <a href="/tags/笔记/">笔记</a>
                        </li>
                        
                        <li>
                            <a href="/tags/日常/">日常</a>
                        </li>
                        
                        <li>
                            <a href="/tags/纯记忆的学习笔记/">纯记忆的学习笔记</a>
                        </li>
                        
                        <li>
                            <a href="/tags/Python/">Python</a>
                        </li>
                        
                        <li>
                            <a href="/tags/不定期更新/">不定期更新</a>
                        </li>
                        
                        
                        <li>
                            <a href="/tags">...</a>
                        </li>
                        
                        
                    </ul>
                </li>
                
                
                
                
                <li class="">
                    <a href="/about">
                        <i class="fa fa-user"></i>关于我
                    </a>
                </li>
                
                
            </ul>
        </div>
    </div>
</header>
    <div id="gal-body">
        <div class="container">
            <div class="row">
                <div class="col-md-8 gal-right" id="mainstay">
                    
<article class="article well article-body" id="article">
    <div class="breadcrumb">
        <i class="fa fa-home"></i>
        <a href="https://laurence-042.github.io">Laurence</a>
        >
        <span>Python笔记-特殊变量</span>
    </div>
    <!-- 大型设备详细文章 -->
    <div class="hidden-xs">
        <div class="title-article">
            <h1>
                <a href="/2018/07/26/Python笔记-特殊变量/">Python笔记-特殊变量</a>
            </h1>
        </div>
        <div class="tag-article">
            
            <span class="label label-gal">
                <i class="fa fa-tags"></i>
                
                <a href="/tags/笔记/">笔记</a>, 
                
                <a href="/tags/Python/">Python</a>
                
            </span>
            
            <span class="label label-gal">
                <i class="fa fa-calendar"></i> 2018-07-26
            </span>
            
        </div>
    </div>
    <!-- 小型设备详细文章 -->
    <div class="visible-xs">
        <center>
            <div class="title-article">
                <h4>
                    <a href="/2018/07/26/Python笔记-特殊变量/">Python笔记-特殊变量</a>
                </h4>
            </div>
            <p>
                <i class="fa fa-calendar"></i> 2018-07-26
            </p>
            <p>
                
                <i class="fa fa-tags"></i>
                
                <a href="/tags/笔记/">笔记</a>, 
                
                <a href="/tags/Python/">Python</a>
                
                
                
            </p>
        </center>
    </div>
    <div class="content-article">
        <p>本文是这个鶸学Python时深刻意识到自己的记性有多差之后写出来的······<br><a id="more"></a></p>
<p>记录特殊变量的使用方式。<br>准备用到一个记一个，所以现在写在这里的这些应该不全</p>
<p>顺便在这里记一下带下划线的变量的含义</p>
<blockquote>
<p>1.<code>__xx</code>，私有变量(private)，只有内部可以访问，外部不能访问<br>2.<code>__xx__</code>，特殊变量，特殊变量是可以直接访问的，它不是private变量<br>3.<code>_x</code>，按照约定俗成的规定，虽然可以被外部访问，但是建议视为私有变量，不要随意访问</p>
</blockquote>
<hr>
<table>
<thead>
<tr>
<th style="text-align:center">变量名</th>
<th style="text-align:left">类型</th>
<th style="text-align:left">作用</th>
<th style="text-align:left">起效方式(假定对象为a,是A类的实例)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center"><code>__doc__</code></td>
<td style="text-align:left">属性</td>
<td style="text-align:left">类的描述信息</td>
<td style="text-align:left"><code>a.__doc__</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__module__</code></td>
<td style="text-align:left">属性</td>
<td style="text-align:left">对象所在的模块</td>
<td style="text-align:left"><code>a.__module__</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__class__</code></td>
<td style="text-align:left">属性</td>
<td style="text-align:left">对象所属的类</td>
<td style="text-align:left"><code>a.__class__</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__slots__</code></td>
<td style="text-align:left">属性</td>
<td style="text-align:left">一个指定当前类实例化的对象的所有可用的变量的列表,<br>包括实例化后可绑定的变量<br>（不影响子类）</td>
<td style="text-align:left"><code>__slots__ = [&#39;test&#39;, &#39;a&#39;] #写于类的声明中</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__init__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">构造方法，通过类创建对象自动执行</td>
<td style="text-align:left"><code>a = A()</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__del__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">析构方法，当前对象在内存中被释放自动执行</td>
<td style="text-align:left"><code>del a #或程序终止时变量全被清除时被自动执行</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__str__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">打印字符串，<br>类似于Java的<code>toString()</code><br>一般用于输出</td>
<td style="text-align:left"><code>print(a)</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__repr__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">打印字符串，<br>类似于Java的<code>toString()</code><br>一般用于调试</td>
<td style="text-align:left"><code>a</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__iter__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">使类可迭代，与<code>__next__</code>一起使用</td>
<td style="text-align:left"><code>for n in A():</code><br>&nbsp;&nbsp;&nbsp;&nbsp;<code>print(n)</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__next__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">使类可迭代，与<code>__iter__</code>一起使用</td>
<td style="text-align:left"><code>for n in A():</code><br>&nbsp;&nbsp;&nbsp;&nbsp;<code>print(n)</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__getitem__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">使类可以像list一样获取指定索引位置的元素</td>
<td style="text-align:left"><code>a[1]</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__setitem__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">使类可以像list一样赋值指定索引位置的元素</td>
<td style="text-align:left"><code>a[1] = 6</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__delitem__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">使类可以像list一样删除指定索引位置的元素</td>
<td style="text-align:left"><code>del a[1]</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__getattr__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">当找不到调用的属性时动态返回属性</td>
<td style="text-align:left"><code>a.b #A里没有属性b</code></td>
</tr>
<tr>
<td style="text-align:center"><code>__call__</code></td>
<td style="text-align:left">方法</td>
<td style="text-align:left">使实例化的对象“可调用”<br>可用<code>callable()</code>判断是否可调用</td>
<td style="text-align:left"><code>a()</code></td>
</tr>
</tbody>
</table>
<hr>
<p>难点示例：用完全动态的<code>__getattr__</code>写链式调用</p>
<pre><code class="python">class Chain(object):

    def __init__(self, path=&#39;&#39;):
        self._path = path

    def __getattr__(self, path):
        return Chain(&#39;%s/%s&#39; % (self._path, path))

    def __str__(self):
        return self._path

    __repr__ = __str__
</code></pre>
<!--more-->
    </div>
</article>


<div id="comments-template"></div>
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
<script>
	if(!window.commentConfig) {
      window.commentConfig = {}
      window.commentConfig.title = 'Python笔记-特殊变量'
    }
</script>

                </div>
                <aside class="col-md-4 gal-left" id="sidebar">
    <!-- 此为sidebar的搜索框, 非搜索结果页面 -->
<aside id="sidebar-search">
    <div class="search hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <form class="form-inline clearfix" id="search-form" method="get"
              action="/search/index.html">
            <input type="text" name="s" class="form-control" id="searchInput" placeholder="搜索文章~">
            <button class="btn btn-danger btn-gal" type="submit">
                <i class="fa fa-search"></i>
            </button>
        </form>
    </div>
</aside>
    <aside id="sidebar-author">
    <div class="panel panel-gal" data-aos="flip-right" data-aos-duration="3000">
        <div class="panel-heading" style="text-align: center">
            <i class="fa fa-quote-left"></i>
            Laurence-042
            <i class="fa fa-quote-right"></i>
        </div>
        <div class="author-panel text-center">
            <img src="/imgs/dr.png" width="140" height="140"
                 alt="个人头像" class="author-image">
            <p class="author-description"></p>
        </div>
    </div>
</aside>
    
    <aside id="sidebar-recent_comments">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-comments"></i>
            最新评论
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush"></ul>
    </div>
</aside>
    
    <!-- 要配置好leancloud才能开启此小工具 -->
    
    
    <aside id="sidebar-recent_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            近期文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/10/08/一个鶸的自我修养/">一个鶸的自我修养</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/10/08/hello-world/">Hello World</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/08/08/给真·小白的关于初用远程Linux系统的简单入门/">给真·小白的关于初用远程Linux系统的简单入门</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/08/02/令新人各种懵逼的各种概念/">令新人各种懵逼的各种概念</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/31/Python-MySQL数据查询/">Python-MySQL数据查询</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/28/Python笔记-这个鶸仍未搞明白的东西/">Python笔记-这个鶸仍未搞明白的东西</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/26/Python笔记-特殊变量/">Python笔记-特殊变量</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/25/Fullmetal Alchemist!!!/">Fullmetal Alchemist!!!</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/23/Python笔记-陌生的lambda/">Python笔记-陌生的lambda</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/22/DFS-BFS学习笔记/">DFS,BFS学习笔记</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="sidebar-rand_posts">
    <div class="panel panel-gal recent hidden-xs" data-aos="fade-up" data-aos-duration="2000">
        <div class="panel-heading">
            <i class="fa fa-refresh"></i>
            随机文章
            <i class="fa fa-times-circle panel-remove"></i>
            <i class="fa fa-chevron-circle-up panel-toggle"></i>
        </div>
        <ul class="list-group list-group-flush">
            
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/25/Fullmetal Alchemist!!!/">Fullmetal Alchemist!!!</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/07/JavaDoc语法/">JavaDoc语法</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/18/JavaGUI-Swing学习笔记/">JavaGUI_Swing学习笔记</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/26/Python笔记-特殊变量/">Python笔记-特殊变量</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/07/23/Python笔记-陌生的lambda/">Python笔记-陌生的lambda</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/10/08/hello-world/">Hello World</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/06/28/hey-there/">hey there</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/10/08/一个鶸的自我修养/">一个鶸的自我修养</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/06/30/各种杂项（不定期更新）/">各种杂项（不定期更新）</a>
                </span>
            </li>
            
            <li class="list-group-item">
                <span class="post-title">
                    <a href="/2018/06/30/文字处理工具（不定期更新）/">文字处理工具（不定期更新）</a>
                </span>
            </li>
            
        </ul>
    </div>
</aside>
    
    
    <aside id="gal-sets">
        <div class="panel panel-gal hidden-xs" data-aos="fade-up" data-aos-duration="2000">
            <ul class="nav nav-pills pills-gal">
                <li class="">
                    <a href="/2018/07/26/Python笔记-特殊变量/index.html#sidebar-tags" data-toggle="tab" id="tags-tab">热门标签</a>
                </li>
                <li class="">
                    <a href="/2018/07/26/Python笔记-特殊变量/index.html#sidebar-friend-links" data-toggle="tab" id="friend-links-tab">友情链接</a>
                </li>
                <li class="">
                    <a href="/2018/07/26/Python笔记-特殊变量/index.html#sidebar-links" data-toggle="tab" id="links-tab">个人链接</a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="cloud-tags tab-pane nav bs-sidenav fade" id="sidebar-tags">
    
    <a href="/tags/Java/" style="font-size: 15.973012422473245px;" class="tag-cloud-link">Java</a>
    
    <a href="/tags/笔记/" style="font-size: 17.524215592759987px;" class="tag-cloud-link">笔记</a>
    
    <a href="/tags/日常/" style="font-size: 12.962443302603102px;" class="tag-cloud-link">日常</a>
    
    <a href="/tags/纯记忆的学习笔记/" style="font-size: 17.475130309267925px;" class="tag-cloud-link">纯记忆的学习笔记</a>
    
    <a href="/tags/Python/" style="font-size: 13.486749704784021px;" class="tag-cloud-link">Python</a>
    
    <a href="/tags/不定期更新/" style="font-size: 13.692715143133857px;" class="tag-cloud-link">不定期更新</a>
    
    <a href="/tags/hey/" style="font-size: 10.368031047700597px;" class="tag-cloud-link">hey!</a>
    
    <a href="/tags/报错解决方案/" style="font-size: 9.643651054992466px;" class="tag-cloud-link">报错解决方案</a>
    
    <a href="/tags/MySQL/" style="font-size: 8.540370171525884px;" class="tag-cloud-link">MySQL</a>
    
    <a href="/tags/服务器/" style="font-size: 14.87839370543577px;" class="tag-cloud-link">服务器</a>
    
    <a href="/tags/工具/" style="font-size: 10.425470540997207px;" class="tag-cloud-link">工具</a>
    
    <a href="/tags/hexo/" style="font-size: 15.767564853295008px;" class="tag-cloud-link">hexo</a>
    
    <a href="/tags/bat/" style="font-size: 14.578796877626178px;" class="tag-cloud-link">bat</a>
    
    <a href="/tags/偷懒/" style="font-size: 14.849493059940245px;" class="tag-cloud-link">偷懒</a>
    
    <a href="/tags/真·小白/" style="font-size: 14.31355307431588px;" class="tag-cloud-link">真·小白</a>
    
    <a href="/tags/Linux/" style="font-size: 16.656999450337246px;" class="tag-cloud-link">Linux</a>
    
</div>
                <div class="friend-links tab-pane nav bs-sidenav fade" id="sidebar-friend-links">
    
    <li>
        <a href="http://kdays.net/days/" target="_blank">KDays Forum</a>
    </li>
    
    <li>
        <a href="http://www.gal123.com/" target="_blank">绅士导航♂</a>
    </li>
    
    <li>
        <a href="http://www.moe123.com/" target="_blank">萌导航</a>
    </li>
    
    <li>
        <a href="https://google.jiongjun.cc/" target="_blank">Google镜像站</a>
    </li>
    
</div>
                <div class="links tab-pane nav bs-sidenav fade" id="sidebar-links">
    
    <li>
        <a href="https://github.com/Laurence-042" target="_blank">Github</a>
    </li>
    
    <li>
        <a href="http://localhost:4000/" target="_blank">null,没有更多的了</a>
    </li>
    
</div>
            </div>
        </div>
    </aside>
    
</aside>
            </div>
        </div>
    </div>
    <footer id="gal-footer">
    <div class="container">
        Copyright © 2018 Laurence-042 Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>.&nbsp;Theme by <a href="https://github.com/ZEROKISEKI" target="_blank">AONOSORA</a>
    </div>
</footer>

<!-- 回到顶端 -->
<div id="gal-gotop">
    <i class="fa fa-angle-up"></i>
</div>
</body>
<script src="/js/activate-power-mode.js"></script>
<script>

    // 配置highslide
	hs.graphicsDir = '/js/highslide/graphics/'
    hs.outlineType = "rounded-white";
    hs.dimmingOpacity = 0.8;
    hs.outlineWhileAnimating = true;
    hs.showCredits = false;
    hs.captionEval = "this.thumb.alt";
    hs.numberPosition = "caption";
    hs.align = "center";
    hs.transitions = ["expand", "crossfade"];
    hs.lang.number = '共%2张图, 当前是第%1张';
    hs.addSlideshow({
      interval: 5000,
      repeat: true,
      useControls: true,
      fixedControls: "fit",
      overlayOptions: {
        opacity: 0.75,
        position: "bottom center",
        hideOnMouseOut: true
      }
    })

    // 初始化aos
    AOS.init({
      duration: 1000,
      delay: 0,
      easing: 'ease-out-back'
    });

</script>
<script>
	POWERMODE.colorful = 'true';    // make power mode colorful
	POWERMODE.shake = 'true';       // turn off shake
	// TODO 这里根据具体情况修改
	document.body.addEventListener('input', POWERMODE);
</script>
<script>
    window.slideConfig = {
      prefix: '/imgs/slide/background',
      ext: 'jpg',
      maxCount: '6'
    }
</script>
<script src="/js/hs.js"></script>
<script src="/js/blog.js"></script>



<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
    if(window.commentConfig) {
      window.commentConfig.id = 'Thu Jul 26 2018 15:14:26 GMT+0000'
      window.commentConfig.owner = 'Laurence-042'
      window.commentConfig.repo = 'blog-comment'
      window.commentConfig.client_id = '41ecdf7be074fb66a1a2'
      window.commentConfig.client_secret = '2382f17284dc9ba9754020431735338ce8d80ec0'
      window.commentConfig.redirect_uri = ''
    } else {
      window.commentConfig = {
      	id: 'Thu Jul 26 2018 15:14:26 GMT+0000',
        owner: 'Laurence-042',
        repo: 'blog-comment',
        client_id: '41ecdf7be074fb66a1a2',
        client_secret: '2382f17284dc9ba9754020431735338ce8d80ec0',
        redirect_uri: ''
      }
    }
</script>

<!--highlight.js-->
<script>
    hljs.initHighlightingOnLoad();
</script>
<script src="/js/comment/gitment.js"></script>

</html>